package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.SysDoctorSchedule;
import com.ruoyi.system.domain.SysDoctorScheduleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SysDoctorScheduleMapper {
    List<SysDoctorSchedule> selectScheduleList(SysDoctorScheduleQuery query);
    SysDoctorSchedule selectScheduleDetail(@Param("doctorId") Long doctorId, @Param("scheduleDate") Date scheduleDate);
    int insertSchedule(SysDoctorSchedule schedule);
    int updateSchedule(SysDoctorSchedule schedule);
    int closeSchedule(@Param("doctorId") Long doctorId, @Param("scheduleDate") Date scheduleDate, @Param("period") String period);
//    List<SysDoctorSchedule> selectByDoctorAndWeek(@Param("doctorId") Long doctorId, @Param("weekStartDate") String weekStartDate);
    // 批量插入排班
//    int batchInsert(@Param("list") List<SysDoctorSchedule> list);
    int insertSysDoctorSchedule(SysDoctorSchedule schedule);
}